<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

<div class="swiper-container banner_main">
    <div class="swiper-wrapper">
        <?php if (!$this->agent->is_mobile()) { ?>
            <?php if ($banner['pc']) : ?>
                <?php foreach ($banner['pc'] as $key => $val) : ?>
                    <div class="swiper-slide"><img src="<?php echo $val['pic_url']; ?>"></div>
                <?php endforeach; ?>
            <?php endif; ?>

        <?php } else { ?>

            <?php if ($banner['mobile']) : ?>
                <?php foreach ($banner['mobile'] as $key => $val) : ?>
                    <div class="swiper-slide"><img src="<?php echo $val['pic_url']; ?>"></div>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php } ?>
    </div>
    <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div>
</div>
<div id="wrap">
    <img src="<?php echo image_url('p_banner.jpg'); ?>">
</div>
<div class="phone_last">
    <ul>
        <li>
            <a href="/about.html">
                <i class="pico ico_a"></i>
                <p>品牌首页</p>
            </a>
        </li>
        <li>
            <a href="/product.html">
                <i class="pico ico_b"></i>
                <p>墙布系列</p>
            </a>
        </li>
        <li>
            <a href="/news.html">
                <i class="pico ico_c"></i>
                <p>新闻中心</p>
            </a>
        </li>
        <li>
            <a href="/join.html">
                <i class="pico ico_e"></i>
                <p>加盟西雅图</p>
            </a>
        </li>
        <li>
            <a href="/contact.html">
                <i class="pico ico_d"></i>
                <p>西雅图服务</p>
            </a>
        </li>
        <li>
            <a href="/jobs.html">
                <i class="pico ico_f"></i>
                <p>加入西雅图</p>
            </a>
        </li>
    </ul>
</div>
<div class="main_bar">
    <div class="hot_title">
        <div class="name">精品推荐</div>
        <div class="more">
            <a href="">更多</a>
        </div>
        <div class="line"><!--线条--></div>
    </div>
    <div class="hot_main">
        <h1>
            <a href="/product_show/<?php echo $hot[0]['id']; ?>.html">
                <span><?php echo $hot[0]['title']; ?></span>
                <img src="<?php echo $hot[0]['img']; ?>">
            </a>
        </h1>
        <ul>
            <?php if ($hot) : ?>
                <?php foreach ($hot as $key => $val) : ?>
                    <?php if ($key > 0) : ?>
                        <li class="swiper-slide">
                            <a href="/product_show/<?php echo $val['id']; ?>.html">
                                <span><?php echo $val['title']; ?> </span>
                                <img src="<?php echo $val['img']; ?>">
                            </a>
                        </li>
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
    </div>
</div>
<div class="about_bar">
    <div class="box">
        <div class="name">关于西雅图</div>
        <div class="show">
            <p>
                "西雅图"、"绣娘"是泰州懿麒墙纸有限公司旗下两大主打品牌，公司主营墙纸、墙布、装饰画、窗帘及私人定制等家居装饰业务，是一家集墙布研发、生产、设计、服务为一体的现代化民营企业，目前已获得"中国墙布十大品牌"、"江苏315消费者信得过企业"等荣誉称号。</p>
        </div>
        <div class="more">
            <a href="/about">了解更多</a>
        </div>
    </div>
</div>
<div class="news_box">
    <div class="title">
        <em>品牌资讯</em>
        <b></b>
        <p>News</p>
    </div>
    <div class="list">
        <ul>
            <!--8个-->
            <?php if ($news) : ?>
                <?php foreach ($news as $key => $val) : ?>
                    <li>
                        <a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>" target="_blank"><?php echo $val['title']; ?></a>
                        <em><?php echo $val['create_time']; ?></em>
                    </li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
    </div>
</div>
<?php $this->load->view('common/footer'); ?>
